
<div class="listgrid-header-wrapper">

	<table>
		<thead>
		<tr>
			<td>夺宝编号</td>
			<td>夺宝名称</td>
			<td>剩余人次</td>
			<td>总人次</td>
			<td>中奖号码</td>
			<td>中奖者Id</td>
			<td>操作</td>
		</tr>
		</thead>
		<tbody>
		<tr th:each="product:${products}" th:object="${product}">
			<td><a th:text="${product.id}" th:href="@{'/product/'+${product.id}}"></a></td>
			<td><span th:text="${product.name}"></span></td>
			<td><span th:text="${product.defaultSku.quantityAvailable}"></span></td>
			<td><span th:text="${product.defaultSku.quantityTotal}"></span></td>
			<td><span th:text="${product.winnerNumber}" ></span></td>
			<td><a th:text="${product.winnerCustomerId}" th:href="@{'/customer/' + ${product.winnerCustomerId}}"></a></td>
			<td><a th:href="@{/treasure/generate(productId=${product.id})}" > 生成中奖号码</a></td>
		</tr>
		</tbody>
	</table>
</div>
